scalebutton: Fix comparison for empty icon list
authorTimm Bäder <mail@baedert.org>
Sun, 8 Oct 2017 18:15:39 +0000 (20:15 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 10 Oct 2017 07:49:35 +0000 (09:49 +0200)
gtk/gtkscalebutton.c

index 7e78735bb84580ce6fe1e91632a5a88c9d741dbd..8ffd37867b364b97b307bdaef7750dcaec729464 100644 (file)
@@ -976,7 +976,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button)
   const gchar *name;
   guint num_icons;
 
-  if (!priv->icon_list || ((char*)priv->icon_list)[0] == '\0')
+  if (!priv->icon_list || priv->icon_list[0][0] == '\0')
     {
       gtk_image_set_from_icon_name (GTK_IMAGE (priv->image),
                                     "image-missing",